<?php
/* @var $this SpeciesController */
/* @var $model Species */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'species-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'ac_fao'); ?>
		<?php echo $form->textField($model,'ac_fao',array('size'=>3,'maxlength'=>3)); ?>
		<?php echo $form->error($model,'ac_fao'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'medits_code'); ?>
		<?php echo $form->textField($model,'medits_code',array('size'=>8,'maxlength'=>8)); ?>
		<?php echo $form->error($model,'medits_code'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'scientific_name'); ?>
		<?php echo $form->textField($model,'scientific_name',array('size'=>40,'maxlength'=>40)); ?>
		<?php echo $form->error($model,'scientific_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'common_name'); ?>
		<?php echo $form->textField($model,'common_name',array('size'=>40,'maxlength'=>40)); ?>
		<?php echo $form->error($model,'common_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'faunistic_category'); ?>
		<?php echo $form->textField($model,'faunistic_category',array('size'=>3,'maxlength'=>3)); ?>
		<?php echo $form->error($model,'faunistic_category'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'family'); ?>
		<?php echo $form->textField($model,'family',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'family'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'unit_measurement'); ?>
		<?php echo $form->textField($model,'unit_measurement',array('size'=>2,'maxlength'=>2)); ?>
		<?php echo $form->error($model,'unit_measurement'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'biomar_name'); ?>
		<?php echo $form->textField($model,'biomar_name',array('size'=>40,'maxlength'=>40)); ?>
		<?php echo $form->error($model,'biomar_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'visible'); ?>
		<?php echo $form->textField($model,'visible'); ?>
		<?php echo $form->error($model,'visible'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->